package com.ruoyi.common.model.mall.domain;

import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @author huixh
 */
public class MallAddress {
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 收货人名称 */
    @Excel(name = "收货人名称")
    private String receiverName;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phoneNumber;

    /** 省份code */
    @Excel(name = "省份code")
    private String provinceCode;

    /** 省份名 */
    @Excel(name = "省份名")
    private String provinceName;

    /** 市 */
    @Excel(name = "市")
    private String cityCode;

    /** 市名 */
    @Excel(name = "市名")
    private String cityName;

    /** 区县名称 */
    @Excel(name = "区县名称")
    private String districtName;

    /** 区县code */
    @Excel(name = "区县code")
    private String districtCode;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String detailedAddress;

    /** 是否默认地址 */
    private boolean isDefault;

    public boolean isDefault() {
        return isDefault;
    }

    public void setDefault(boolean aDefault) {
        isDefault = aDefault;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setReceiverName(String receiverName)
    {
        this.receiverName = receiverName;
    }

    public String getReceiverName()
    {
        return receiverName;
    }
    public void setPhoneNumber(String phoneNumber)
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber()
    {
        return phoneNumber;
    }
    public void setProvinceCode(String provinceCode)
    {
        this.provinceCode = provinceCode;
    }

    public String getProvinceCode()
    {
        return provinceCode;
    }
    public void setProvinceName(String provinceName)
    {
        this.provinceName = provinceName;
    }

    public String getProvinceName()
    {
        return provinceName;
    }
    public void setCityCode(String cityCode)
    {
        this.cityCode = cityCode;
    }

    public String getCityCode()
    {
        return cityCode;
    }
    public void setCityName(String cityName)
    {
        this.cityName = cityName;
    }

    public String getCityName()
    {
        return cityName;
    }
    public void setDistrictName(String districtName)
    {
        this.districtName = districtName;
    }

    public String getDistrictName()
    {
        return districtName;
    }
    public void setDistrictCode(String districtCode)
    {
        this.districtCode = districtCode;
    }

    public String getDistrictCode()
    {
        return districtCode;
    }
    public void setDetailedAddress(String detailedAddress)
    {
        this.detailedAddress = detailedAddress;
    }

    public String getDetailedAddress()
    {
        return detailedAddress;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("receiverName", getReceiverName())
                .append("phoneNumber", getPhoneNumber())
                .append("provinceCode", getProvinceCode())
                .append("provinceName", getProvinceName())
                .append("cityCode", getCityCode())
                .append("cityName", getCityName())
                .append("districtName", getDistrictName())
                .append("districtCode", getDistrictCode())
                .append("detailedAddress", getDetailedAddress())
                .toString();
    }
}
